//
//  ItemTable.swift
//  Persistance
//
//  Created by apple on 2018/10/27.
//  Copyright © 2018 apple. All rights reserved.
//

import UIKit
import CTPersistance

class ItemTable: CTPersistanceTable, CTPersistanceTableProtocol {
    
    func databaseName() -> String! {
        return "item.sqlite"
    }
    
    func tableName() -> String! {
        return "item"
    }
    
    func columnInfo() -> [AnyHashable : Any]! {
        return ["primaryKey":"INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL","name":"TEXT"]
    }
    
    func recordClass() -> AnyClass! {
        return ItemRecord.self
    }
    
    func primaryKeyName() -> String! {
        return "primaryKey"
    }
    
    
    
}
